package com.xie.service;

import com.xie.dao.ResultsMapper;
import com.xie.pojo.Results;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResultsServiceImpl implements ResultsService {
    private ResultsMapper resultsMapper;
    public void setResultsMapper(ResultsMapper resultsMapper) {
        this.resultsMapper = resultsMapper;
    }

    public int addResults(Results results) {
        return resultsMapper.addResults(results);
    }

    public List<Results> queryAllResults() {
        return resultsMapper.queryAllResults();
    }

    public int deleteResults(String cname) {
        return resultsMapper.deleteResults(cname);
    }

    public int updateResults(Results results) {
        return resultsMapper.updateResults(results);
    }

    public Results queryResults(String cname) {
        return resultsMapper.queryResults(cname);
    }
}
